home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-04-25 | 1.7 KB | 72 lines | [TEXT/MPS ] |
- # Full build script for MRC PPC
- #
- # MCPPCBuildAll [Debug|Release] [Clean] [NoExamples]
- #
- # This script assumes that you have placed UserStartup•ODF in your MPW folder.
-
- if {ODF} == ""
- Beep
- Beep
- Echo "### You have not installed the 'UserStartup•ODF' file (or 'UserStartupTS•ODF' for ToolServer)."
- Echo "### Please do so before continuing. Those files are located in the 'MPW-ToolServer Additions'"
- Echo "### folder inside the ODFDev folder. Don't forget to relaunch MPW (or ToolServer)."
- exit
- end
-
- Set TheBuild ""
- Set Clean 0
- Set Examples 1
-
- For item in {"Parameters"}
- if {item} == Debug
- Set TheBuild Debug
- else if {item} == debug
- Set TheBuild Debug
- else if {item} == Release
- Set TheBuild Release
- else if {item} == release
- Set TheBuild Release
- else if {item} == Clean
- Set Clean 1
- else if {item} == clean
- Set Clean 1
- else if {item} == NoExamples
- Set Examples 0
- else if {item} == noexamples
- Set Examples 0
- else if {item} == Noexamples
- Set Examples 0
- else
- Echo "MCPPCBuildAll [Debug|Release] [Clean] [NoExamples]"
- exit
- end
- End
-
- if {TheBuild} == ""
- Set TheBuild Debug
- end
-
- Set Exit 0
- if {Clean} == 1
- Echo "Cleaning object files"
- delete -y "{ODF}MCPPC{TheBuild}:Obj:"≈
- if {Examples} == 1
- For example In Bitmap Button Clock Container Draw Embed Form Hello Nothing Table
- delete -y "{ODFDev}{example}:MCPPC{TheBuild}:Obj:"≈
- End
- End
- End
- Set Exit 1
-
- # ----- Build ODF Shared Library
- # The shared library is built using CodeWarrior.
-
- # ----- Build ODF Static Libraries
- "{ODF}MCPPC{TheBuild}:Build"
-
- # ----- Build ODF Samples
- if {Examples} == 1
- For example In Bitmap Button Clock Container Draw Embed Form Hello Nothing Table
- "{ODFDev}{example}:MCPPC{TheBuild}:Build"
- End
- End